// GLOBAL COMMON STYLE
// 2020-07-10

// RESET DEFAULT
body {
    margin: 0;
    padding: 0;
    font-size: 16px;
    color: #333;
}
ul {
    margin: 0;
    padding: 0;
}
li {
    list-style: none;
}
a {
    color: #333;
    text-decoration: none;
}
img {
    display: block;
}

// COMMON STYLE
header {
    margin: 0 auto;
    width: 1200px;
    height: 70px;
    &:after,
    &:before {
        content: '';
        display: block;
        clear: both;
    }
    .logo {
        float: left;
        line-height: 1;
        margin-top: 15px;
        img {
            width: 40px;
            height: 40px;
            float: left;
        }
        span:nth-child(2) {
            font-size: 20px;
            font-weight: bold;
            margin: 0 15px;
            border-right: 1px solid #666;
            padding-right: 15px;
            float: left;
            margin-top: 10px;
        }
        span:last-child {
            color: #666;
            float: left;
            margin-top: 12px;
        }
    }
    .nav {
        float: right;
        ul {
            margin-top: 17px;
            height: 53px;
            &:after,
            &:before {
                content: '';
                display: block;
                clear: both;
            }
            li {
                float: left;
                margin: 0 5px;
                a {
                    display: block;
                    line-height: 36px;
                    padding: 0 10px;
                }
                &:after {
                    display: block;
                    content: '';
                    width: 0;
                    height: 3px;
                    background-color: #ff7519;
                    margin-left: 50%;
                    transition-duration: 0.25s;
                    margin-top: 14px;
                }
                &.active a,
                &:hover a {
                    color: #ff7519;
                }
                &.active:after,
                &:hover:after {
                    width:100%;
                    margin-left: 0;
                }
                &:nth-child(5) a {
                    background-color: #ff7519;
                    border-radius: 4px;
                    color: #FFF;
                }
                &:nth-child(5):after,
                &:nth-child(6):after {
                    display: none;
                }
            }
        }
    }
}

footer {
    background-color: #3479b7;
    .contact {
        width: 1200px;
        margin: 0 auto;
        padding: 20px 0;
        &:after,
        &:before {
            content: '';
            display: block;
            clear: both;
        }
        .tel {
            float: left;
            justify-content: space-between;
            align-items: center;
            color: #FFF;
            .free {
                float: left;
                p {
                    margin: 20px 0 0;
                }
                p:last-child {
                    margin: 0;
                    font-size: 32px;
                }
            }
            ul {
                float: left;
                margin-left: 50px;
                margin-top: 30px;
            }
        }
        &>img {
            float: right;
            margin-top: 12px;
        }
    }
    .copyright {
        border-top: 1px solid #739dc3;
        ul {
            width: 1200px;
            margin: 0 auto;
            color: #FFF;
            line-height: 3;
            li {
                display: inline-block;
                &:first-child {
                    margin-right: 20px;
                }
                &:last-child {
                    float: right;
                }
            }
            img {
                vertical-align: text-top;
                display: inline;
            }
        }
    }
}